package org.sunshine.mamadu.experiment;

import org.eclipse.swt.widgets.Display;
import org.eclipse.swt.widgets.Shell;
import org.eclipse.swt.SWT;

public class SWTExperiments {

    /* public static void main(String[] args) {

            try {


            } catch (Throwable th) {
                th.printStackTrace();
            }


        }
    */

    public static void main(String[] args) {
        Display display = new Display();
        Shell shell = new SWTExperiments().open(display);
        while (!shell.isDisposed()) {
            if (!display.readAndDispatch()) display.sleep();
        }
        display.dispose();
    }

    public Shell open(Display display) {
        Shell shell = new Shell(display, SWT.TOOL);
        shell.setSize(200, 50);
        shell.open();

        return shell;
    }
}

